<div class="span3 bs-docs-sidebar">
    <ul class="nav nav-list bs-docs-sidenav">
    </ul>
</div>
<div class="span9">
    <section id="domain">
        <div class="page-header">
            <h1>Laba Rugi</h1>
        </div>
        <div class="row-fluid">
            <div class="span6">
                <table class="table table-bordered table-striped">
                    <thead>
                        <tr>
                            <th class="span2">Jenis</th>
                            <th class="span2">Total</th>
                            <th class="span2">Jumlah</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td>
                                <code>Keuntungan</code>
                            </td>
                            <td></td>
                            <td>Rp <?php echo $keuntungan = $keuntungan[0]->paid ?></td>
                        </tr>
                        <tr>
                            <td>
                                <code>Sedekah 10%</code>
                            </td>
                            <td>Rp <?php echo $sedekah = $keuntungan * 10 / 100; ?></td>
                            <td>Rp <?php echo $data = $keuntungan - $sedekah ?></td>
                        </tr>
                        <tr>
                            <td>
                                <code>Simpan 30%</code>
                            </td>
                            <td>Rp <?php echo $simpanan = $keuntungan * 30 / 100; ?></td>
                            <td>Rp <?php echo $data = $keuntungan - $sedekah - $simpanan ?></td>
                        </tr>
                        <tr>
                            <td colspan="2"><center><code>Bagi hasil sebesar 60%</code></center></td>
                    <td>Rp <?php echo $data ?></td>
                    </tr>
                    </tbody>
                </table>
                <table class="table table-bordered table-striped">
                    <thead>
                        <tr>
                            <th class="span2">Jenis</th>
                            <th class="span2">Total</th>
                            <th class="span2">Jumlah</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td>
                                <code>Investor 40%</code>
                            </td>
                            <td>Rp <?php echo $investor = $data * 40 / 100 ?></td>
                            <td>Rp <?php echo $investor ?></td>
                        </tr>
                        <tr>
                            <td>
                                <code>Pengelola 60%</code>
                            </td>
                            <td>Rp <?php echo $tugucamp = $data * 60 / 100 ?></td>
                            <td>Rp <?php echo $tugucamp ?></td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </section>    
</div>